package com.lili.model.operate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "li_distribution_goods")
public class DistributionGoods {
    private static final long SerialVersionUID = 1L;
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    Long id;
    String createBy;

    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    LocalDateTime createTime;
    Double commission;
    String goods_id;
    String goods_name;
    Double price;
    Integer quantity;
    String store_id;
    String sku_id;
    String specs;
    String thumbnail;
    String store_name;
}
